package com.etalk.crm.dao;

import com.etalk.crm.pojo.OrderBooks;
import com.etalk.crm.pojo.Textbooks;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author Terwer
 * @Date 2018/11/13 13:47
 * @Version 1.0
 * @Description 订单教材信息
 **/
@Mapper
public interface OrderBooksMapper {
    /**
     * 添加订单教材信息
     *
     * @param orderBooks
     * @return
     */
    int insertOrderBooks(OrderBooks orderBooks);

    /**
     * 修改教材
     * @param id 订单教材关联id
     * @param textbookId 教材id
     * @return
     */
    int updateOrderBookById(@Param("id")Integer id,@Param("textbookId")Integer textbookId);

    /**
     * 根据id查询教材编号
     * @param id 订单教材关联id
     * @return
     */
    List<Textbooks> selectOrderBookById(@Param("listId") List<Integer> listId);
}
